import request from '@/utils/request'
// 获取树种列表
export function getTreeSpeciesList(params) {
    return request({
        url: '/forest/species/selectListData',
        method: 'get',
        params
    })
}
// 获取行政区划
export function getDeptList(params) {
    return request({
        url: '/system/dept/list',
        method: 'get',
        params
    })
}
// 获取种植产值列表
export function getEconomicForest(params) {
    return request({
        url: '/forest/JjlOutputValue/list',
        method: 'get',
        params
    })
}
// 获取种植产值详情
export function getEconomicForestDetail(id) {
    return request({
        url: `/forest/JjlOutputValue/${id}`,
        method: 'get'
    })
}
// 种植产量上报
export function submitEconomicForestYield(data) {
    return request({
        url: '/forest/JjlOutput',
        method: 'post',
        data
    })
}
// 修改种植产量
export function editEconomicForestYield(data) {
    return request({
        url: '/forest/JjlOutput',
        method: 'put',
        data
    })
}
// 删除种植产量
export function deleteEconomicForestYield(id) {
    return request({
        url: `/forest/JjlOutput/${id}`,
        method: 'delete'
    })
}
// 种植产值上报
export function submitEconomicForest(data) {
    return request({
        url: '/forest/JjlOutputValue',
        method: 'post',
        data
    })
}
// 修改种植产值
export function editEconomicForest(data) {
    return request({
        url: '/forest/JjlOutputValue',
        method: 'put',
        data
    })
}
// 删除种植产值
export function deleteEconomicForest(id) {
    return request({
        url: `/forest/JjlOutputValue/${id}`,
        method: 'delete'
    })
}
// 获取种植产量列表
export function getEconomicForestYield(params) {
    return request({
        url: '/forest/JjlOutput/list',
        method: 'get',
        params
    })
}
// 获取种植面积列表
export function getEconomicForestArea(params) {
    return request({
        url: '/forest/JjlAcreage/list',
        method: 'get',
        params
    })
}
// 种植面积上报
export function submitEconomicForestArea(data) {
    return request({
        url: '/forest/JjlAcreage',
        method: 'post',
        data
    })
}
// 修改种植面积
export function editJjlAcreage(data) {
    return request({
        url: '/forest/JjlAcreage',
        method: 'put',
        data
    })
}
// 删除种植面积
export function deleteJjlAcreage(id) {
    return request({
        url: `/forest/JjlAcreage/${id}`,
        method: 'delete'
    })
}
// 获取课件类型
export function getCoursewareType() {
    return request({
        url: '/system/dict/data/type/courseware_type',
        method: 'get'
    })
}
// 获取课件列表
export function getCoursewareList(params) {
    return request({
        url: '/forest/JjlCourseware/list',
        method: 'get',
        params
    })
}
// 获取课件详情
export function getCoursewareDetail(id) {
    return request({
        url: `/forest/JjlCourseware/${id}`,
        method: 'get'
    })
}
// 获取品牌类型
export function getBrandType() {
    return request({
        url: '/system/dict/data/type/brand_type',
        method: 'get'
    })
}

// 获取品牌列表
export function getBrandList(params) {
    return request({
        url: '/forest/JjlBrand/list',
        method: 'get',
        params
    })
}

// 添加品牌
export function addBrand(data) {
    return request({
        url: '/forest/JjlBrand',
        method: 'post',
        data
    })
}

// 修改品牌
export function updateBrand(data) {
    return request({
        url: '/forest/JjlBrand',
        method: 'put',
        data
    })
}

// 删除品牌
export function deleteBrand(id) {
    return request({
        url: `/forest/JjlBrand/${id}`,
        method: 'delete'
    })
}

// 获取品牌基地列表
export function getBrandBaseList(params) {
    return request({
        url: '/forest/JjlBrandBase/list',
        method: 'get',
        params
    })
}

// 添加品牌基地
export function addBrandBase(data) {
    return request({
        url: '/forest/JjlBrandBase',
        method: 'post',
        data
    })
}

//删除品牌基地
export function delJjlBrandBase(id) {
    return request({
        url: `/forest/JjlBrandBase/${id}`,
        method: 'DELETE'
    })
}
//修改品牌基地
export function editJjlBrandBase(data) {
    return request({
        url: `/forest/JjlBrandBase`,
        method: 'PUT',
        data
    })
}
// 导出
export function exportJjlBrandBase(data) {
    return request({
        url: 'forest/JjlBrandBase/customExport',
        method: 'post',
        data
    })
}
// 获取节庆活动列表
export function getActivityList(params) {
    return request({
        url: '/forest/JjlActivity/list',
        method: 'get',
        params
    })
}

// 获取栽培技术列表
export function getSkillList(params) {
    return request({
        url: '/forest/JjlSkill/list',
        method: 'get',
        params
    })
}

// 获取政策法规列表
export function getPolicyList(params) {
    return request({
        url: '/forest/JjlPolicyDepot/list',
        method: 'get',
        params
    })
}

// 上传政策法规
export function createPolicy(data) {
    return request({
        url: '/forest/JjlPolicyDepot',
        method: 'post',
        data
    })
}
